import request from '@/utils/request'
export function fetchList(params) {
    return request({
        url:'/sms/SmsGroup/list',
        method:'get',
        params:params
    })
}

// 获取代言列表
export function daiyanList(params) {
    return request({
        url:'ums/memberShare/list',
        method:'get',
        params:params
    })
}

// 代言审核
export function updateDaiyan(params) {
    return request({
        url:'ums/memberShare/updateStatus',
        method:'PUT',
		params:params
    })
}

// 获取水晶列表
export function amountList(params) {
    return request({
        url:'ums/UmsMemberAmountLog/list',
        method:'get',
        params:params
    })
}

// 充值/提现审核
export function updateAmount(params) {
    return request({
        url:'ums/UmsMemberAmountLog/updateStatus',
        method:'PUT',
		params:params
    })
}
// 获取发起人信息
export function getBankList(params) {
    return request({
        url:'ums/userBankcards',
        method:'GET',
		params:params
    })
}


export function listGroupMember(params) {
  return request({
    url:'/sms/SmsGroup/listGroupMember',
    method:'get',
    params:params
  })
}
export function createGroup(data) {
    return request({
        url:'/sms/SmsGroup/create',
        method:'post',
        data:data
    })
}

export function deleteGroup(id) {
    return request({
        url:'/sms/SmsGroup/delete/'+id,
        method:'get',
    })
}

export function getGroup(id) {
    return request({
        url:'/sms/SmsGroup/'+id,
        method:'get',
    })
}

export function updateGroup(id,data) {
    return request({
        url:'/sms/SmsGroup/update/'+id,
        method:'post',
        data:data
    })
}

